from sort_A import simply_sort

flag = True
n, k = map(int, input().split())
boxes = [list(map(int, input().split())) for i in range(n)]

print(boxes)

for i in range(n):
    for j in range(boxes[i]):
        if j < sum(boxes[j : len(boxes) - 1]):
            flag = False
            print("no")
            break

if flag:
    print("yes")
